Setting the background color. Use utilities like bg-white, bg-indigo-500 and bg-transparent to control the background color of an element.
Share, comment, bookmark or report
When it comes to building a custom color palette, you can either curate your colors from our extensive included color palette, or configure your own custom colors by adding your specific color values directly.
Share, comment, bookmark or report
By default, Tailwind makes the entire default color palette available as text colors. You can customize your color palette by editing theme.colors or theme.extend.colors in your tailwind.config.js file.
Share, comment, bookmark or report
Customizing the default color palette for your project. The theme.colors section of your tailwind.config.js file allows you to override Tailwind's default color palette. // tailwind.config.js. module.exports = {. theme: {. colors: {. indigo: '#5c6ac4', blue: '#007ace', red: '#de3618', } } }
Share, comment, bookmark or report
Setting the accent color. Use the accent-* utilities to change the accent color of an element. This is helpful for styling elements like checkboxes and radio groups by overriding the browser’s default color.
Share, comment, bookmark or report
Text Colors. By default, Tailwind makes the entire default color palette available as text colors. You can customize your color palette by editing theme.colors in your tailwind.config.js file, or customize just your text colors in the theme.textColor section.
Share, comment, bookmark or report
You can customize your color palette by editing the theme.colors variable in your tailwind.config.js file, or customize just your background colors using the theme.backgroundColor section of your Tailwind config.
Share, comment, bookmark or report
You can customize your color palette by editing the theme.colors variable in your tailwind.config.js file, or customize just your background colors using the theme.backgroundColor section of your Tailwind config.
Share, comment, bookmark or report
Tailwind CSS is a utility-first CSS framework for rapidly building modern websites without ever leaving your HTML.
Share, comment, bookmark or report
If you don’t have a set of completely custom colors in mind for your project, you can curate your colors from our default palette by importing tailwindcss/colors in your configuration file and choosing the colors you want to use:
Share, comment, bookmark or report
Comments